//解析json的数据模型层
class CommentModel {
  String states;
  String errorMsg;
  String result;

  CommentModel({this.states, this.errorMsg, this.result});

  CommentModel.fromJson(Map<String, dynamic> json) {
    states = json['states'];
    errorMsg = json['errorMsg'];
    result = json['result'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['states'] = this.states;
    data['errorMsg'] = this.errorMsg;
    data['result'] = this.result;
    return data;
  }
}
